package com.hu.auth.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hu.auth.model.Menu;
import com.hu.auth.model.po.AssignMenuPo;
import com.hu.auth.model.po.MenuAddPo;

import java.util.List;

public interface MenuService extends IService<Menu> {

    List<Menu> tree();

    void removeById(Long id);

    // 查询角色的菜单
    List<Menu> getByRoleId(Long roleId);

    // 为角色分配菜单
    void assignMenu(AssignMenuPo po);
}
